$(document).ready(function (e) {
    log = console.log;
    var pager_id = '#pager_hold';
    var search_list = '#list';
    var sort_by_container = '#sort_by';
    var filter_trigger = $('.filterelement');

    API.Data.IS_FILTERING = false;

    var effects_manager = new API.x_effect.EffectsManager("#results");
    var sorter_manager = new API.x_sorter.SorterManager(sort_by_container);
    var pager_manager = new API.x_pager.PagerManager("#results", "#list", effects_manager);
    var slider_manager = new API.x_slider.SliderManager(effects_manager, ".slider", "#list");

    var references = {
        'effects_manager': effects_manager,
        'slider_manager': slider_manager,
        'sorter_manager': sorter_manager,
        'pager_manager': pager_manager
    };

    var filter = new API.x_filter.FilterManager(filter_trigger, search_list, items, sort_by_container, references);

    filter.initialize();

});